package com.obtk.shilipai.dao;

import com.obtk.shilipai.entity.Dishe;
import com.obtk.shilipai.entity.DisheType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DisheMapper {
    List<Dishe> getDisheByAll(@Param("shopId") Integer shopId, @Param("disheTypeId") Integer disheTypeId, @Param("status") Integer status,@Param("keywords") String keywords);

    List<DisheType> getDisheType(Integer shopId);


    Integer addDisheType(DisheType disheType);

    Integer delDisheType(@Param("idStr") String[] idStr);

    Integer addDishe(Dishe dishe);


    Integer delDishe(@Param("idStr")String[] idStr);

    Dishe getDisheById(Integer disheId);


    Integer updateDishe(Dishe dishe);

    Integer xiajiaDishe(@Param("idStr")String[] idArray);

    Integer shangjiaDishe(@Param("idStr")String[] idArray);

    List<DisheType> getDisheNum();

    Integer setDisheNum(@Param("disheTypeId")Integer disheTypeId,@Param("disheNum")Integer disheNum);

    List<Dishe> getDisheByShopId(Integer shopId);
}
